<template>
  <div>
    <h1>AAA {{ count }}</h1>
    <B />
  </div>
</template>

<script>
import B from "./B.vue";

export default {
  name: "AComp",
  components: { B },
  // 子组件通信 inject 声明接受数据
  inject: ["count"],
};
</script>

<style></style>
